package com.vhall.component.service.pay;


import com.vhall.component.entity.pay.entity.PaymentOrderEntity;
import com.vhall.component.entity.pay.vo.PaymentParamVO;

import java.util.Map;

/**
 * @author xuyongzheng
 * @since 2020/10/22
 **/
public interface PaymentService {
    Object build(PaymentOrderEntity entity);

    /**
     * 组件支付接口的直接调用
     *
     * @param id
     * @return
     */
    Boolean payNotify(Integer id);

    Boolean tradeNoInsertCache(Map<String, Object> data);

    Map<String, Object> getTradeNoCache(String tradeNo);

    Object genPayment(PaymentParamVO reqVO);
}
